package com.bjl.dao;

import com.bjl.entity.Room;
import orm.base.baseImp.BaseDaoInterface;

import java.util.List;
import java.util.Map;

/**
 * Created by ashin on 2017/11/22.
 */
public interface RoomDao extends BaseDaoInterface {

    /**
     * 查询房间列表
     * @param map
     * @return
     * @throws Exception
     */
    public abstract List<Room> queryChartRoomsByType(Map map) throws Exception;

    /**
     * 将用户从房间移除
     * @param map
     * @return
     * @throws Exception
     */
    public abstract int removeUserRoom(Map map) throws Exception;

    /**
     * 将用户新增到房间
     * @param map
     * @return
     * @throws Exception
     */
    public abstract int addUserRoom(Map map) throws Exception;


}
